package org.github.manx98.jlibhac.fssystem;

/**
 * @author Manx98
 * @version 1.0
 * @since 2022/10/3 23:51
 */
public enum NcaHashType {
    Auto,
    None,
    Sha256,
    Ivfc;

    public static NcaHashType valueOf(byte value) {
        for (NcaHashType ncaHashType : values()) {
            if (ncaHashType.ordinal() == value) {
                return ncaHashType;
            }
        }
        throw new IllegalArgumentException("Invalid value for hash type " + value);
    }
}
